package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * 返回数据
 */
@ApiModel(description = "返回数据")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiResponseCustomerOverAllTradeTodayEntrustData   {
  @JsonProperty("pagePos")
  private String pagePos = null;

  @JsonProperty("bargainEntrust")
  @Valid
  private List<BargainEntrust> bargainEntrust = null;

  public ApiResponseCustomerOverAllTradeTodayEntrustData pagePos(String pagePos) {
    this.pagePos = pagePos;
    return this;
  }

  /**
   * 定位串
   * @return pagePos
  **/
  @ApiModelProperty(value = "定位串")


  public String getPagePos() {
    return pagePos;
  }

  public void setPagePos(String pagePos) {
    this.pagePos = pagePos;
  }

  public ApiResponseCustomerOverAllTradeTodayEntrustData bargainEntrust(List<BargainEntrust> bargainEntrust) {
    this.bargainEntrust = bargainEntrust;
    return this;
  }

  public ApiResponseCustomerOverAllTradeTodayEntrustData addBargainEntrustItem(BargainEntrust bargainEntrustItem) {
    if (this.bargainEntrust == null) {
      this.bargainEntrust = new ArrayList<BargainEntrust>();
    }
    this.bargainEntrust.add(bargainEntrustItem);
    return this;
  }

  /**
   * 委托
   * @return bargainEntrust
  **/
  @ApiModelProperty(value = "委托")

  @Valid

  public List<BargainEntrust> getBargainEntrust() {
    return bargainEntrust;
  }

  public void setBargainEntrust(List<BargainEntrust> bargainEntrust) {
    this.bargainEntrust = bargainEntrust;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiResponseCustomerOverAllTradeTodayEntrustData apiResponseCustomerOverAllTradeTodayEntrustData = (ApiResponseCustomerOverAllTradeTodayEntrustData) o;
    return Objects.equals(this.pagePos, apiResponseCustomerOverAllTradeTodayEntrustData.pagePos) &&
        Objects.equals(this.bargainEntrust, apiResponseCustomerOverAllTradeTodayEntrustData.bargainEntrust);
  }

  @Override
  public int hashCode() {
    return Objects.hash(pagePos, bargainEntrust);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiResponseCustomerOverAllTradeTodayEntrustData {\n");
    
    sb.append("    pagePos: ").append(toIndentedString(pagePos)).append("\n");
    sb.append("    bargainEntrust: ").append(toIndentedString(bargainEntrust)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

